import service from "../../utils/request";

export const userLogin = async (data: UserDto): Promise<Result<User>> => await service.post(`/adminuser/adminLogin`, data)

//获取分页用户列表
export const getUserList = async (page: number, name?: string): Promise<PageResult<User[]>> => await service.get(`/user/find?page=${page}&name=${name}`)